﻿using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;
using Pansoft.HIME.Controllers.Attributes;

namespace Pansoft.HIME.Controllers
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "Default",
                url: "{controller}/",
                defaults: new {controller = "Home", action = "Index"}
                );
            routes.MapRoute(
                name: "Login",
                url: "{controller}/login",
                defaults: new {controller = "Home", action = "Login"}
                );
            routes.MapRoute(
                name: "TranscationList",
                url: "{controller}/transcationlist",
                defaults: new { controller = "Home", action = "TranscationList" }
                );
            routes.MapRoute(
                name: "LogDetails",
                url: "{controller}/logdetails",
                defaults: new {controller = "Home", action = "LogDetails"}
                );
            routes.MapRoute(
                name: "Organization",
                url: "{controller}/organization",
                defaults: new {controller = "Home", action = "Organization"}
                );
            routes.MapRoute(
                name: "Satisfactions",
                url: "{controller}/satisfactions",
                defaults: new {controller = "Home", action = "Satisfactions"}
                );
            routes.MapRoute(
                name: "Welcome",
                url: "{controller}/welcome",
                defaults: new {controller = "Home", action = "Welcome"}
                );
            routes.MapRoute(
                name: "Workload",
                url: "{controller}/workload",
                defaults: new { controller = "Home", action = "Workload" }
                );
            routes.MapRoute(
                name: "DeviceManager",
                url: "{controller}/devicemanager",
                defaults: new { controller = "Home", action = "DeviceManager" }
                );
            routes.MapRoute(
                name: "AboutMe",
                url: "{controller}/aboutme",
                defaults: new { controller = "Home", action = "AboutMe" }
                );
            routes.MapRoute(
                name: "CustomerManager",
                url: "{controller}/customermanager",
                defaults: new { controller = "Home", action = "CustomerManager" }
                );
            routes.MapRoute(
                name: "DeveloperTeam",
                url: "{controller}/developerteam",
                defaults: new { controller = "Home", action = "DeveloperTeam" }
                );
            routes.MapRoute(
                name: "Licence",
                url: "{controller}/licence",
                defaults: new { controller = "Home", action = "Licence" }
                );
            routes.MapRoute(
                name: "PreFillDocumentManager",
                url: "{controller}/prefilldocumentmanager",
                defaults: new { controller = "Home", action = "PreFillDocumentManager" }
                );
            routes.MapRoute(
                name: "LocalManager",
                url: "{controller}/localmanager",
                defaults: new { controller = "Home", action = "LocalManager" }
                );
        }
    }
}